package com.tupi.project.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 网络请求基本模型
 */
public class BaseBean<L, O> implements Serializable
{
    /**
     * 成功标志
     */
    private Boolean successFlg;
    /**
     * 条数
     */
    private int pageSize;
    /**
     * 当前页码
     */
    private int currPage;
    /**
     * 总页数
     */
    private int totalPage;
    /**
     * 总条数
     */
    private int totalCount;
    /**
     * 列表
     */
    private List<L> detailModelList;
    /**
     * 对象
     */
    private O obj;
    /**
     * 错误信息
     */
    private String errorMsg;
    /**
     * 错误码
     */
    private String errorCode;
    
    public Boolean getSuccessFlg()
    {
        return successFlg;
    }
    
    public void setSuccessFlg(Boolean successFlg)
    {
        this.successFlg = successFlg;
    }
    
    public int getPageSize()
    {
        return pageSize;
    }
    
    public void setPageSize(int pageSize)
    {
        this.pageSize = pageSize;
    }
    
    public int getCurrPage()
    {
        return currPage;
    }
    
    public void setCurrPage(int currPage)
    {
        this.currPage = currPage;
    }
    
    public int getTotalPage()
    {
        return totalPage;
    }
    
    public void setTotalPage(int totalPage)
    {
        this.totalPage = totalPage;
    }
    
    public int getTotalCount()
    {
        return totalCount;
    }
    
    public void setTotalCount(int totalCount)
    {
        this.totalCount = totalCount;
    }
    
    public List<L> getDetailModelList()
    {
        return detailModelList;
    }
    
    public void setDetailModelList(List<L> detailModelList)
    {
        this.detailModelList = detailModelList;
    }
    
    public O getObj()
    {
        return obj;
    }
    
    public void setObj(O obj)
    {
        this.obj = obj;
    }
    
    public String getErrorMsg()
    {
        return errorMsg;
    }
    
    public void setErrorMsg(String errorMsg)
    {
        this.errorMsg = errorMsg;
    }
    
    public String getErrorCode()
    {
        return errorCode;
    }
    
    public void setErrorCode(String errorCode)
    {
        this.errorCode = errorCode;
    }
}
